package com.abc.cloud.dao;

import com.abc.cloud.entity.ChatDetailUserEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 聊天记录读取表
 * 
 * @author LiJunXi
 * @email 2770063826@qq.com
 * @date 2023-12-04 20:23:52
 */
@Mapper
public interface ChatDetailUserDao extends BaseMapper<ChatDetailUserEntity> {

    void changeRead(@Param("list") List<Long> chatDetailIds,
                    @Param("userId") Long userId,
                    @Param("isRead") Integer isRead);
}
